From: Giovanni Campagna Date: Thu, 28 Oct 2010 20:25:33 +0000 (+0200) Subject: Don't remove the tray icons we don't add X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9591 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=08f7ecad359c80839ac060f0e67ccb12a75816c3;p=gnome-shell.git Don't remove the tray icons we don't add Tray icons replaced by a shell version are automatically filtered and never make to the tray container, but when removed by the client we were still trying to remove them from the tray, causing a warning. https://bugzilla.gnome.org/show_bug.cgi?id=633028 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index da1079c79..eb1e4a378 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -903,7 +903,8 @@ Panel.prototype = { }, _onTrayIconRemoved: function(o, icon) { - this._trayBox.remove_actor(icon); + if (icon.get_parent() != null) + this._trayBox.remove_actor(icon); }, _addRipple : function(delay, time, startScale, startOpacity, finalScale, finalOpacity) {